<template>
    <div>
        <form action="/">
            <van-search v-model="value" show-action placeholder="请输入搜索关键词" @search="onSearch"  />
        </form>
    </div>
</template>

<script setup>
  import {useRouter} from 'vue-router'
  let router=useRouter()
  const onSearch=()=>{
    console.log('搜索跳转');
    router.push('/sous')
  }
</script>

<style lang="scss" scoped></style>